package com.bbzn.device.client.service.impl;

import com.bbzn.device.client.dao.group.GroupMapper;
import com.bbzn.device.client.dataobject.Group;
import com.bbzn.device.client.dto.group.GroupDTO;
import com.bbzn.device.client.service.GroupService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class GroupServiceImpl implements GroupService {

    @Resource
    private GroupMapper groupMapper;

    @Override
    public int deleteByPrimaryKey(Long id) {
        return groupMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(Group record) {
        return groupMapper.insert(record);
    }

    @Override
    public int insertOrUpdate(Group record) {
        return groupMapper.insertOrUpdate(record);
    }

    @Override
    public int insertOrUpdateSelective(Group record) {
        return groupMapper.insertOrUpdateSelective(record);
    }

    @Override
    public int insertSelective(Group record) {
        return groupMapper.insertSelective(record);
    }

    @Override
    public Group selectByPrimaryKey(Long id) {
        return groupMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(Group record) {
        return groupMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int checkStateByImei(String imei) {
        return groupMapper.checkStateByImei(imei);
    }

    @Override
    public int updateByPrimaryKey(Group record) {
        return groupMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<Group> findByAll(Group group) {
        return groupMapper.findByAll(group);
    }

    @Override
    public int updateBatch(List<Group> list) {
        return groupMapper.updateBatch(list);
    }

    @Override
    public int updateBatchSelective(List<Group> list) {
        return groupMapper.updateBatchSelective(list);
    }

    @Override
    public int batchInsert(List<Group> list) {
        return groupMapper.batchInsert(list);
    }

    @Override
    public List<Group> queryByAll(GroupDTO group) {
        return groupMapper.queryByAll(group);
    }

    @Override
    public int batchDel(List<Long> list) {
        return groupMapper.batchDel(list);
    }

}




